﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using Model.Entities;

namespace Model.Mappings
{
    public partial class RMBT_FIXED_STATION_Map : SubclassMap<RMBT_FIXED_STATION>
    {
        public RMBT_FIXED_STATION_Map()
        {
            Table("RMBT_FIXED_STATION");
            KeyColumn("MFID");
            Map(x => x.NAME).Nullable().Length(100);
            Map(x => x.LONGITUDE).Nullable().Precision(12).Scale(9);
            Map(x => x.LATITUDE).Nullable().Precision(12).Scale(9);
            Map(x => x.ADDRESS).Nullable().Length(80);
            Map(x => x.MAGANGLE).Not.Nullable().Precision(5).Scale(2);
            Map(x => x.FMSKIND).Nullable().Length(2);
            Map(x => x.FMADDRTYPE).Nullable().Length(2);
            Map(x => x.STATUS).Nullable().Length(2);
            Map(x => x.ISLINK).Nullable().Length(2);
            Map(x => x.INTEGRATEDCO).Not.Nullable().Length(100);
            Map(x => x.REMOCONTIP).Not.Nullable().Length(100);
            Map(x => x.REMOCONTPORT).Not.Nullable().Precision(5).Scale(0);
            Map(x => x.REMARK).Not.Nullable().Length(512);
            DoEditableMappings();
        }
    }
}
